﻿@model FamilyModel
@{
    ViewBag.Title = "家庭情况";
    Layout = "~/Views/Shared/_Layout.cshtml";

    var monotropicSet = ViewBag.MonotropicSet as SelectList;
    var dinkSet = ViewBag.DinkSet as SelectList;
    var singletonSet = ViewBag.SingletonSet as SelectList;
    var livingSet = ViewBag.LivingSet as SelectList;
    var carSet = ViewBag.CarSet as SelectList;
    var houseSet = ViewBag.HouseSet as SelectList;
}
<section class="pe-basic">

    @Html.Partial("_PersonalPartial")

    <div class="content">
        <h4>家庭情况</h4>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Monotropic) @Html.ValidationMessageFor(model => model.Monotropic)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Monotropic, monotropicSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Dink) @Html.ValidationMessageFor(model => model.Dink)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Dink, dinkSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Singleton) @Html.ValidationMessageFor(model => model.Singleton)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Singleton, singletonSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Living) @Html.ValidationMessageFor(model => model.Living)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Living, livingSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Car) @Html.ValidationMessageFor(model => model.Car)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Car, carSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.House) @Html.ValidationMessageFor(model => model.House)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.House, houseSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                </div>
                <div class="editor-field">
                    <input type="submit" value="保存" />@Html.ActionLink("继续下一步", "Work")
                </div>
            </div>
        }
    </div>
</section>
